package com.demo;

import org.apache.jmeter.protocol.java.sampler.AbstractJavaSamplerClient;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext;
import org.apache.jmeter.samplers.SampleResult;

/**
 * @author wangfengchen
 * 自定义java请求开发
 * Terminal控制台执行命令：mvn clean package 将target下的jar包放到jmeter lib ext 包下。
 * 然后新建线程添加java请求会自动出现类路径 com.demo.First，执行之后可在jmeter启动控台上打印 hello jmeter
 */
public class First extends AbstractJavaSamplerClient {
  @Override
  public SampleResult runTest(JavaSamplerContext javaSamplerContext) {
    System.out.println("hello jmeter");
    return null;
  }
}
